
SRC_S += $(wildcard libcpu/*.S)

SRC_C += $(wildcard applications/*.c)

SRC_C += $(wildcard drivers/*.c drivers/spi/*.c)

SRC_C += $(wildcard libcpu/*.c)

SRC_C += $(wildcard rt-thread/components/dfs/filesystems/devfs/*.c)

SRC_C += $(wildcard rt-thread/components/dfs/filesystems/elmfat/*.c)

SRC_C += $(wildcard rt-thread/components/dfs/src/*.c)

SRC_C += $(wildcard rt-thread/components/drivers/ipc/*.c)

SRC_C +=rt-thread/components/drivers/serial/serial.c

SRC_C += $(wildcard rt-thread/components/drivers/misc/pin.c)

SRC_C += $(wildcard rt-thread/components/drivers/sdio/*.c)

SPI_DIR=rt-thread/components/drivers/spi
SRC_C += $(SPI_DIR)/spi_core.c $(SPI_DIR)/spi_dev.c $(SPI_DIR)/spi_flash_sfud.c $(SPI_DIR)/spi_flash_sfud.c 

SRC_C += $(wildcard rt-thread/components/drivers/spi/sfud/src/*.c)

SRC_C += $(wildcard rt-thread/components/libc/compilers/common/*.c)

SRC_C += $(wildcard rt-thread/components/libc/compilers/newlib/*.c)

SRC_C += $(wildcard rt-thread/components/finsh/*.c)

SRC_C += $(wildcard rt-thread/src/*.c)


# INCLUDE+= \
# -I. \
# -Irt-thread/include \
# -Idrivers \
# -Idrivers/spi \
# -Iapplications \
# -Ilibcpu \
# -Irt-thread/components/dfs/filesystems/devfs \
# -Irt-thread/components/dfs/filesystems/elmfat \
# -Irt-thread/components/dfs/include \
# -Irt-thread/components/drivers/include/drivers \
# -Irt-thread/components/drivers/include \
# -Irt-thread/components/drivers/include/ipc \
# -Irt-thread/components/drivers/spi \
# -Irt-thread/components/drivers/spi/sfud/inc \
# -Irt-thread/components/libc/compilers/common \
# -Irt-thread/components/libc/compilers/common/sys \
# -Irt-thread/components/libc/compilers/newlib \
# -Irt-thread/components/finsh 

INCLUDE+=\
-I. \
-Irt-thread/include \
-Iapplications \
-Idrivers/spi \
-Idrivers \
-Ilibcpu \
-Irt-thread/components/dfs/filesystems/devfs \
-Irt-thread/components/dfs/filesystems/elmfat \
-Irt-thread/components/dfs/include \
-Irt-thread/components/drivers/include \
-Irt-thread/components/drivers/spi/sfud/inc \
-Irt-thread/components/drivers/spi \
-Irt-thread/components/finsh \
-Irt-thread/components/libc/compilers/common \
-Irt-thread/components/libc/compilers/newlib \
-Irt-thread/components/libc/posix/io/poll \
-Irt-thread/components/libc/posix/io/stdio \
-Irt-thread/components/libc/posix/ipc \
